]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
keyboard: Minor refactor
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 26 Jan 2024 15:18:38 +0000 (16:18 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 29 Feb 2024 15:34:21 +0000 (16:34 +0100)
Call the _updateKeys() method, instead of inlining it.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3162>

js/ui/keyboard.js

index 56c8d585ea99c7cdc9744d41dfba117a73686265..05ac18a8b46899bde36f2c8dadefb0cb2b2a2672 100644 (file)
@@ -1411,8 +1411,7 @@ export const Keyboard = GObject.registerClass({
         this._keypad.hide();
         this._keypadVisible = false;
 
-        this._ensureKeysForGroup(this._keyboardController.getCurrentGroup());
-        this._setActiveLayer(0);
+        this._updateKeys();
 
         Main.inputMethod.connectObject(
             'terminal-mode-changed', this._onTerminalModeChanged.bind(this),